#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20230706.sql ./mysql/db
cp ../sql/ry_config_20220929.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../coderjacky-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy coderjacky-gateway "
cp ../coderjacky-gateway/target/coderjacky-gateway.jar ./coderjacky/gateway/jar

echo "begin copy coderjacky-auth "
cp ../coderjacky-auth/target/coderjacky-auth.jar ./coderjacky/auth/jar

echo "begin copy coderjacky-visual "
cp ../coderjacky-visual/coderjacky-monitor/target/coderjacky-visual-monitor.jar  ./coderjacky/visual/monitor/jar

echo "begin copy coderjacky-modules-system "
cp ../coderjacky-modules/coderjacky-system/target/coderjacky-modules-system.jar ./coderjacky/modules/system/jar

echo "begin copy coderjacky-modules-file "
cp ../coderjacky-modules/coderjacky-file/target/coderjacky-modules-file.jar ./coderjacky/modules/file/jar

echo "begin copy coderjacky-modules-job "
cp ../coderjacky-modules/coderjacky-job/target/coderjacky-modules-job.jar ./coderjacky/modules/job/jar

echo "begin copy coderjacky-modules-gen "
cp ../coderjacky-modules/coderjacky-gen/target/coderjacky-modules-gen.jar ./coderjacky/modules/gen/jar

